const path = require('path');

module.exports = {
    entry: './main.js',
    module: {
        rules: [{
            test: /\.js$/,
            exclude: /node_modules/,
            loader: "babel-loader",
            options: {
                "presets": [
                    "@babel/preset-env"
                ],
                plugins: [["@babel/plugin-transform-react-jsx", { pragma: "ToyReact.createElement" }]]
            }
        }]
    },
    mode: 'development',
    optimization: {
        minimize: false
    }
};